showName();
console.log(myName);
console.log(hero);

var myName = '王子恒';
let hero = '蜘蛛侠';
function showName() {
  console.log(myName);
  console.log('函数showName被执行');
}